import { request } from '@/framework/utils/request-jdz';

type BoxDeployCountReturnType = {
  all: number;
  access: number;
  ratio: number;
  privinceRatio: number;
  cityRatio: number;
  countryRatio: number;
};
//操作记录
export const journalSearch = (queryParam, queryOpt) => {
  queryOpt.notInOptCode = '1007'; // 过滤一些操作码
  return request(
    {
      url: '/common/opt',
      method: 'get',
      params: { ...queryParam, ...queryOpt },
    },
    {
      isGetDataDirectly: false,
    },
  );
};
//库存容量
export const getVolume = () => {
  return request(
    {
      url: '/screen/strainCount2',
      method: 'get',
    },
    {
      isGetDataDirectly: false,
    },
  );
};
//库存容量
export const getStatistics = () => {
  return request(
    {
      url: '/storages/statistics/storageStatistic',
      method: 'get',
    },
    {
      isGetDataDirectly: false,
    },
  );
};
//预警信息
export const getWarnData = () => {
  return request(
    {
      url: '/screen/exceptionResp',
      method: 'get',
    },
    {
      isGetDataDirectly: false,
    },
  );
};
//样本信息
export const getinformation = () => {
  return request(
    {
      url: '/specimens/statistic',
      method: 'get',
    },
    {
      isGetDataDirectly: false,
    },
  );
};
//冰箱信息
export const getIceBox = () => {
  return request(
    {
      url: '/storages/statistics/iceBoxAreaStatistic',
      method: 'get',
    },
    {
      isGetDataDirectly: false,
    },
  );
};
